package com.uusee.crawler.pageprocessor.video.youku;

import com.uusee.util.Base64Util;

public final class YoukuVideoUtils {
	
	public static String encodeVid(String vid) {
		long lVid = Long.valueOf(vid);
		String evid = Base64Util.encode(lVid*4+"");
		return evid;
	}
	
	public static String decodeEvid(String evid) {
		String vid = Base64Util.decode(evid.substring(1));
		long lVid = Long.valueOf(vid)/4;
		return lVid+"";
	}
	
}
